﻿<?php
	class GetFood extends CI_Controller {
	
		function __construct()
		{
			parent::__construct();
			$this->load->model('Foods');
			$this->load->library('json_helper');
		}

		function index()
		{
			echo '你好，世界！！';
			echo "<br>";
		}
		function get() {
			//echo $this->json_helper->to_json($this->Foods->getFoods());
			echo $this->Foods->toJson();
		}
	}
?>